2 * Copyright (C) 2023 by Claudio Cambra <claudio.cambra@nextcloud.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 #ifndef ClientCommunicationProtocol_h
16 #define ClientCommunicationProtocol_h
18 #import <Foundation/Foundation.h>
20 @protocol ClientCommunicationProtocol
22 - (void)getExtensionAccountIdWithCompletionHandler:(void(^)(NSString *extensionAccountId, NSError *error))completionHandler;
23 - (void)configureAccountWithUser:(NSString *)user
24 userId:(NSString *)userId
25 serverUrl:(NSString *)serverUrl
26 password:(NSString *)password;
27 - (void)removeAccountConfig;
28 - (void)createDebugLogStringWithCompletionHandler:(void(^)(NSString *debugLogString, NSError *error))completionHandler;
29 - (void)getFastEnumerationStateWithCompletionHandler:(void(^)(BOOL enabled, BOOL set))completionHandler;
30 - (void)setFastEnumerationEnabled:(BOOL)enabled;
34 #endif /* ClientCommunicationProtocol_h */